package com.itheima.Dao.impl;

import com.itheima.Dao.DeptDao;
import com.itheima.Dao.LogDao;
import org.apache.commons.io.IOUtils;
import org.springframework.stereotype.Component;

import java.io.InputStream;
import java.util.List;
@Component
public class LogDaoimpl implements LogDao {
    @Override
    public List<String> list() {
        InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("Log.txt");
        return IOUtils.readLines(inputStream, "UTF-8");
    }

}
